import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 邀请日志信息
 */
@Entity('student_invite_log')
export class StudentInviteLogEntity extends BaseEntity {
  @Index()
  @Column({ comment: '销售ID' })
  salesId: number;

  @Index()
  @Column({ comment: '学员ID' })
  studentId: number;

  @Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
  status: number;

  @Column({ comment: '类型', dict: ['类型A', '类型B'], default: 0 })
  type: number;

  @Column({ comment: '行为', dict: ['行为X', '行为Y'], default: 0 })
  behave: number;
}
